<div class="sort_control">
	<label><?php echo $this->translate('View by') ?></label>
	<?php
		echo $this->formSelect(
			'sort',
			Zend_Controller_Front::getInstance()->getRequest()->getParam('sort', $this->default_sort),
			array('onchange' => 'javascript:location.href = "'.$this->pageUrl(array_merge($this->query,array('sort'=> NULL,'page' => 1))).'/sort/"+this.value;'),
            Core_Model_DbTable_Entries::getArrayViewTypes()
		);
	?>
</div>